Optimal. Leaf size=45 \[ \sqrt{2} \tan ^{-1}\left (\sqrt{6 x+8}+3\right )-\sqrt{2} \tan ^{-1}\left (3-\sqrt{2} \sqrt{3 x+4}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0542021, antiderivative size = 45, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {827, 1161, 618, 204} \[ \sqrt{2} \tan ^{-1}\left (\sqrt{6 x+8}+3\right )-\sqrt{2} \tan ^{-1}\left (3-\sqrt{2} \sqrt{3 x+4}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 827
Rule 1161
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{3+x}{\sqrt{4+3 x} \left (1+x^2\right )} \, dx &=2 \operatorname{Subst}\left (\int \frac{5+x^2}{25-8 x^2+x^4} \, dx,x,\sqrt{4+3 x}\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{5-3 \sqrt{2} x+x^2} \, dx,x,\sqrt{4+3 x}\right )+\operatorname{Subst}\left (\int \frac{1}{5+3 \sqrt{2} x+x^2} \, dx,x,\sqrt{4+3 x}\right )\\ &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{-2-x^2} \, dx,x,-3 \sqrt{2}+2 \sqrt{4+3 x}\right )\right )-2 \operatorname{Subst}\left (\int \frac{1}{-2-x^2} \, dx,x,3 \sqrt{2}+2 \sqrt{4+3 x}\right )\\ &=-\sqrt{2} \tan ^{-1}\left (3-\sqrt{2} \sqrt{4+3 x}\right )+\sqrt{2} \tan ^{-1}\left (3+\sqrt{2} \sqrt{4+3 x}\right )\\ \end{align*}
Mathematica [C] time = 0.0465216, size = 63, normalized size = 1.4 \[ \frac{1}{5} \left ((1-3 i) \sqrt{4-3 i} \tanh ^{-1}\left (\frac{\sqrt{3 x+4}}{\sqrt{4-3 i}}\right )+(1+3 i) \sqrt{4+3 i} \tanh ^{-1}\left (\frac{\sqrt{3 x+4}}{\sqrt{4+3 i}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 52, normalized size = 1.2 \begin{align*} \sqrt{2}\arctan \left ({\frac{\sqrt{2}}{2} \left ( 2\,\sqrt{4+3\,x}-3\,\sqrt{2} \right ) } \right ) +\sqrt{2}\arctan \left ({\frac{\sqrt{2}}{2} \left ( 2\,\sqrt{4+3\,x}+3\,\sqrt{2} \right ) } \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x + 3}{{\left (x^{2} + 1\right )} \sqrt{3 \, x + 4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6787, size = 72, normalized size = 1.6 \begin{align*} \sqrt{2} \arctan \left (\frac{\sqrt{2}{\left (3 \, x - 1\right )}}{2 \, \sqrt{3 \, x + 4}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x + 3}{\sqrt{3 x + 4} \left (x^{2} + 1\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x + 3}{{\left (x^{2} + 1\right )} \sqrt{3 \, x + 4}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]